/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race Alaskan Native Aleut Member5</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getRaceAlaskanNativeAleutMember5()
 * @model extendedMetaData="name='RaceAlaskanNativeAleut_._member_._5'"
 * @generated
 */
public enum RaceAlaskanNativeAleutMember5 implements Enumerator {
	/**
	 * The '<em><b>19661</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19661_VALUE
	 * @generated
	 * @ordered
	 */
	_19661(0, "_19661", "1966-1"),

	/**
	 * The '<em><b>19901</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19901_VALUE
	 * @generated
	 * @ordered
	 */
	_19901(1, "_19901", "1990-1"),

	/**
	 * The '<em><b>20024</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20024_VALUE
	 * @generated
	 * @ordered
	 */
	_20024(2, "_20024", "2002-4"),

	/**
	 * The '<em><b>20040</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20040_VALUE
	 * @generated
	 * @ordered
	 */
	_20040(3, "_20040", "2004-0");

	/**
	 * The '<em><b>19661</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19661</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19661
	 * @model literal="1966-1"
	 * @generated
	 * @ordered
	 */
	public static final int _19661_VALUE = 0;

	/**
	 * The '<em><b>19901</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19901</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19901
	 * @model literal="1990-1"
	 * @generated
	 * @ordered
	 */
	public static final int _19901_VALUE = 1;

	/**
	 * The '<em><b>20024</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20024</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20024
	 * @model literal="2002-4"
	 * @generated
	 * @ordered
	 */
	public static final int _20024_VALUE = 2;

	/**
	 * The '<em><b>20040</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20040</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20040
	 * @model literal="2004-0"
	 * @generated
	 * @ordered
	 */
	public static final int _20040_VALUE = 3;

	/**
	 * An array of all the '<em><b>Race Alaskan Native Aleut Member5</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAlaskanNativeAleutMember5[] VALUES_ARRAY =
		new RaceAlaskanNativeAleutMember5[] {
			_19661,
			_19901,
			_20024,
			_20040,
		};

	/**
	 * A public read-only list of all the '<em><b>Race Alaskan Native Aleut Member5</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAlaskanNativeAleutMember5> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Member5</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutMember5 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAlaskanNativeAleutMember5 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Member5</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutMember5 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAlaskanNativeAleutMember5 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Member5</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutMember5 get(int value) {
		switch (value) {
			case _19661_VALUE: return _19661;
			case _19901_VALUE: return _19901;
			case _20024_VALUE: return _20024;
			case _20040_VALUE: return _20040;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAlaskanNativeAleutMember5(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAlaskanNativeAleutMember5
